import { Response } from "./Response";
export type Service<T = any> = {
  page: (params: T & Record<string, any>) => Promise<Response<T[]>>;
  add: (params: T & Record<string, any>) => Promise<Response<T[]>>;
  remove: (ids: string[] | string) => Promise<Response>;
  // 更新提交数据
  update:(params : T & Record<string, any>) => Promise<Response<T[]>>;
};
